package ${controllerPackage};

import ${poPackage}.${className};
import ${servicePackage}.${className}Service;
import com.ajavaer.framework.core.web.controller.OrmController;
import org.springframework.web.bind.annotation.RequestMapping;
import com.ajavaer.framework.core.orm.service.BaseService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/${className}")
public class ${className}Controller extends OrmController<${className}, ${pkType}> {
    @Resource
    private ${className}Service ${className?uncap_first}Service;

    @Override
    public BaseService<${className}, Long> getBaseService() {
        return ${className?uncap_first}Service;
    }

}